import request from '@/utils/request';

export async function getInsList(params) {
  return request(`/esApi/insRefundInfo/pageListInsRefundInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function getAccuList(params) {
  return request(`/esApi/accuRefundInfo/pageListAccuRefundInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function getInsEmpNameList(params) {
  return request(`/esApi/insRefundInfo/getEmpList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function getAccuEmpNameList(params) {
  return request(`/esApi/accuRefundInfo/getEmpList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function addInsRefundInfo(params) {
  return request(`/esApi/insRefundInfo/addInsRefundInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function addAccuRefundInfo(params) {
  return request(`/esApi/accuRefundInfo/addAccuRefundInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function getInsEmpNameInfo(params) {
  return request(`/esApi/insRefundInfo/getInsRefundInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function getAccuEmpNameInfo(params) {
  return request(`/esApi/accuRefundInfo/getAccuRefundInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function getInsRefundInfo(params) {
  return request(`/esApi/insRefundInfo/queryInsRefundInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function getAccuRefundInfo(params) {
  return request(`/esApi/accuRefundInfo/queryAccuRefundInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function getInsUpdateInfo(params) {
  return request(`/esApi/insRefundInfo/getInsRefundInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function getAccuUpdateInfo(params) {
  return request(`/esApi/accuRefundInfo/getAccuRefundInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 社保修改
export async function UpdateInsInfo(params) {
  return request(`/esApi/insRefundInfo/updateInsRefundInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 公积金修改
export async function UpdateAccuInfo(params) {
  return request(`/esApi/accuRefundInfo/updateAccuRefundInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 社保作废
export async function execInvalidInsInfo(params) {
  return request(`/esApi/insRefundInfo/execInvalidInsRefundInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 公积金作废
export async function execInvalidAccuInfo(params) {
  return request(`/esApi/accuRefundInfo/execInvalidAccuRefundInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 社保取消作废
export async function cancelInvalidInsInfo(params) {
  return request(`/esApi/insRefundInfo/execCanclInvalidInsRefundInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 公积金取消作废
export async function cancelInvalidAccuInfo(params) {
  return request(`/esApi/accuRefundInfo/execCanclInvalidAccuRefundInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 获取服务类型列表
export async function getServiceDictList(params) {
  return request(`/mgrApi/plcyDataDict/entrySerTypeList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 社保标记支付
export async function markData(params) {
  return request(`/esApi/insRefundInfo/execPayCompInsRefundInfo`, {
    method: 'POST',
    body: params,
  });
}

// 公积金标记支付
export async function accumarkData(params) {
  return request(`/esApi/accuRefundInfo/execPayCompAccuRefundInfo`, {
    method: 'POST',
    body: params,
  });
}
// 社保标记已到款
export async function alreadyPaidIns(params) {
  return request(`/esApi/insRefundInfo/execClaimInsRefundInfo`, {
    method: 'POST',
    body: params,
  });
}
export async function alreadyPaidAccu(params) {
  return request(`/esApi/accuRefundInfo/execClaimAccuRefundInfo`, {
    method: 'POST',
    body: params,
  });
}
// //字典接口
export async function handleDicList(params) {
  return request(`/osApi/mdm/nmDict/queryDictItemsByCodes`, {
    method: 'POST',
    body: params,
  });
}

export async function insUploadFile(params) {
  return request(`/esApi/insRefundInfo/uploadExcelAdd`, {
    method: 'POST',
    body: params,
  });
}

export async function accuUploadFile(params) {
  return request(`/esApi/accuRefundInfo/uploadExcelAdd`, {
    method: 'POST',
    body: params,
  });
}
